package com.ocom.payhandle.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ocom.common.entity.card.EntityXfRecordWaitpay;
import com.ocom.common.vo.pyhandle.WaitPayListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IDaoXfRecordWaitpay extends BaseMapper<EntityXfRecordWaitpay> {
    	@Select("select id as backId , order_no , cons_money ,real_money , op_type , cons_time,point_name,pay_state  " +
			"from xf_record_waitpay " +
			"where com_id = #{comId} and p_id =   #{pId}  and pay_state = -1 " +
			"order by id desc " )
	public List<WaitPayListVo> selectWaitpay(@Param("comId") Long comId,
											  @Param("pId")Long pId );
}
